import axios from '@/libs/api.request'
export const getItems = (data) => {
  return axios.request({
    url: '/purchase/getItems?pid=' + data.pid,
    method: 'get'
  })
}

export const getInPlanByCar = (data) => {
  return axios.request({
    url: '/purchase/getInPlanByCar?car=' + data.car,
    method: 'get'
  })
}

export const getItemhy = (data) => {
  return axios.request({
    url: '/Ciq/getItems?pid=' + data.pid,
    method: 'get'
  })
}

export const getweightbycar = (data) => {
  return axios.request({
    url: '/pound/getweightbycar?billcode=' + data.inbillcode,
    method: 'get'
  })
}
export const getMaterialBybillcode = (data) => {
  return axios.request({
    url: '/Ciq/getMaterialBybillcode?billcode=' + data.billcode,
    method: 'get'
  })
}
export const getHouseMaterial = (data) => {
  return axios.request({
    url: '/Result/getHouseMaterial?houseid=' + data.houseid,
    method: 'get'
  })
}
export const jisuan = (data) => {
  return axios.request({
    url: '/Result/jisuan',
    method: 'post',
    data
  })
}
export const saveResult = (data) => {
  return axios.request({
    url: '/Result/saveResult',
    method: 'post',
    data
  })
}
export const getSelItems = (data) => {
  return axios.request({
    url: '/Result/getSelItems?id=' + data.id,
    method: 'get'
  })
}
export const getWarehousebyCode = (data) => {
  return axios.request({
    url: '/warehousing/getWarehousebyCode?rkcode=' + data.rkcode,
    method: 'get'
  })
}
export const delData = (data) => {
  return axios.request({
    url: '/deliver/Delete',
    method: 'get',
    params:{ id: data.id ,weight:data.weight,inbillcode:data.inbillcode}
  })
}

